import base from "./base"; // 导入接口域名列表
import axios from "../http"; // 导入http中创建的axios实例
import qs from "qs"; // 根据需求是否导入qs模块

const getAgent = {
  getAgentApplyList(params) {
    return axios.post(`${base.bd}/admin/agent/lists`, qs.stringify(params));
  },
  checkAgent(params){
    return axios.post(`${base.bd}/admin/agent/savecheck`, qs.stringify(params));
  },
  saveEditRemark(params){
    return axios.post(`${base.bd}/admin/agent/saveedit`, qs.stringify(params));
  },
  delAgent(params){
    return axios.post(`${base.bd}/admin/agent/del`, qs.stringify(params));
  },
  editAgentInfo(params){
    return axios.post(`${base.bd}/admin/agent/edit`, qs.stringify(params));
  },
  getAgentList(params){
    return axios.post(`${base.bd}/admin/user/agent_lists`, qs.stringify(params));
  }
};
export default getAgent;
